//app.js
App({
  onLaunch: function () {
    wx.getSystemInfo({
      success: (res) => {
        this.globalData.windowHeight = res.windowHeight,
        this.globalData.windowWidth = res.windowWidth,
        console.log(res.windowWidth,res.windowHeight)
      }
    })
  },
  globalData: {
    windowHeight:'',
    windowWidth:'',
    userInfo: null
  }
})